/*
    created: 2023/4/3
    filename: Main.cpp
    author: 李东霖
    purpose: Prototype的演示代码

*/

#include"Prototype.h"
#include<stdlib.h>
int main()
{
    Prototype* pPrototype1 = new ConcreatePrototype1();
    Prototype* pPrototype2 = pPrototype1->Clone();

    Prototype* pPrototype3 = new ConcreatePrototype2();
    Prototype* pPrototype4 = pPrototype3->Clone();


    delete pPrototype1; 
    delete pPrototype2; 
    delete pPrototype3; 
    delete pPrototype4;
    system("pause");

    return 0;
}